from Page.page_login import Login
from Page.page_online import Online
from Tools.tools import DriverTools
from config import BASE_URL


class TestOnline:
    def setup_method(self):
        driver = DriverTools.get_driver()
        driver.get(BASE_URL+"/common/member/login")
        self.login = Login(driver)
        self.login.login_succeses('18738142070', "test123456")
        self.online= Online(driver)

    def teardown_method(self):
        DriverTools.close_driver()

    def test_online_apply(self):
        self.online.oline_apply_money()
        self.online.online_apply_input("测试11", "北京市", "10", "1000", "3", "3", "测试")
        self.online.get_shot("test_online_apply.png")